package javaweb_work01.classesContrl.Service;

import javaweb_work01.classesContrl.Dao.SetClassesDao;
import javaweb_work01.classesContrl.Entity.Classes;
import javaweb_work01.classesContrl.Factory.ClassesFactory;

public class SetClassesService {
    //合成复用原则
    private SetClassesDao setClassesDao;

    public SetClassesService(){
        this.setClassesDao = ClassesFactory.getSetClassesDao();
    }

    /**
     * 自定义成员方法实现修改班级信息功能
     * @param classes
     */
    public void setClassesService(Classes classes){
        setClassesDao.setClasses(classes);
    }
}
